package Scene5;

import Picture.GameImage;

import java.awt.image.BufferedImage;

public class Ice4 {

        int speed = 0;
        int x = 2300;
        int y = 900;
        JumpAnimal jumpAnimal;
        BufferedImage img = GameImage.get("/Picture/pt.png");
        int w = img.getWidth();
        int h = img.getHeight();
        public Ice4(JumpAnimal jumpAnimal){
            this.jumpAnimal = jumpAnimal;

        }

        public void move(){
            if(jumpAnimal.y==jumpAnimal.groundY){
                speed = 0;
            }
            x-=speed/2;
        }
    public void  reOpen(){
        speed = 0;
        x = 2300;
        y = 900;
    }

    }

